package com.zhang.service;

import com.zhang.entity.ProductSalePropertyKey;
import com.zhang.entity.SkuInfo;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface SkuDetailService {

    //a.根据skuId查询商品的基本信息
    SkuInfo getSkuInfo(Long skuId);

    //e.销售属性组合与SkuId的对应关系
    Map<Object, Object> getSalePropertyAndSkuIdMapping(Long productId);

    //d.获取该SKU对应的销售属性(一份)和所有的销售属性(全份)
    List<ProductSalePropertyKey> getSpuSalePropertyAndSelected(Long productId, Long skuId);
}
